VT-d/ATS: misc fixes
authorJan Beulich <jbeulich@novell.com>
Tue, 18 Jan 2011 12:28:10 +0000 (12:28 +0000)
committerJan Beulich <jbeulich@novell.com>
Tue, 18 Jan 2011 12:28:10 +0000 (12:28 +0000)
commitf1b2ae8e6c5a90ced7b9c75001818784b3aed162
treeaff7608738a5a846d32ef65d53d716034c35202f
parentdd37a134f63af7b0cc1bfb8aed5684184dd9d8cd
VT-d/ATS: misc fixes

First of all there were three places potentially de-referencing NULL
(two after an allocation failure, and one after a failed lookup).

Second, if ATS_ENABLE was already set, the device would not have got
added to the ats_devices list, potentially resulting in
dev_invalidate_iotlb() doing an incomplete job.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen/drivers/passthrough/vtd/x86/ats.c